STEP 16: Now, let's delete the falling meteors from the stage.

The event handler in the collision event identifies the sprite and the hit_sprite in any collision. Our sprite is the alien. We'll use hit_sprite inside the collision event to refer to any sprite that our alien collides with.

  • Go to and drag Remove Sprite inside the collision event.
  • Change sprite in the .remove_sprite() command to hit_sprite.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)